package com.jiandian.dao;

import com.jiandian.entity.SignUser;
import com.jiandian.page.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 签到用户 Mapper
 *
 * @author houqi Fu
 * @date 2018/12/15
 */
@Mapper
@Component
public interface SignUserMapper {
    void initDailyData();

    SignUser selectByPrimaryKey(Integer id);

    List<SignUser> selectAll(PageInfo pageInfo);

    int selectCount(PageInfo pageInfo);

    List<SignUser> batchQueryByIds(List<Integer> ids);

    SignUser selectByIdNumber(@Param("idNumber") String idNumber);

    int updateByPrimaryKey(SignUser record);

    int insert(SignUser record);

    int batchInsert(List<SignUser> list);

    int batchDeleteById(List<Integer> ids);

    int deleteByPrimaryKey(Integer id);

    int getSupplementCount(@Param("userId") int userId);

}
